<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/styles/style.css" />
<link type="text/css" href="${pageContext.request.contextPath }/scripts/jquery-ui-1.8.16.custom/css/sunny/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
<title>Contacts</title>
</head>
<body>
	<jsp:include page="parts/header.jsp"/>
	
	
	<div id="main" class="ui-widget-content form_pad">
	<jsp:include page="parts/choiceBar.jsp"></jsp:include>
	
		<div id="content">
		
		
			<h1> Contacts</h1>
			<hr/>
			
			<form action="${pageContext.request.contextPath }/controller" method="post">
				<input type="hidden" name="command" value="sendMessage">
			<table id="contactTable">
				<tr>
					<td>
					Email:<br>
					<input type="text" name="email" value='${currentContact.email}'>
					</td>
				</tr>
				<tr>
					<td>
					Name:<br>
					<input type="text" name="name" value='${currentContact.firstName} ${currentContact.lastName}'>
					</td>
				</tr>
				<tr>
					<td>
					Subject:<br>
					<input type="text" name="subject">
					</td>
				</tr>
				<tr>
					<td>
					Message:<br>
					<textarea name="message" id="contactMessage"></textarea>
					</td>
				</tr>
				<tr>
					<td>
					<input type="submit" value="Send">
					</td>
				</tr>
				<tr>
					<td>
					<h3 color='red'>${errorMessage}</h3>
					</td>
				</tr>

			</table>
			</form>
			
		<hr/>
		</div>
	
	
	</div>
	<jsp:include page="parts/footer.jsp"/>
</body>
</html>